package com.wish.objectadapter;





/**
 * Created by suliucheng on 2021/1/10 21:10
 * Directions:
 */
public class Test {
    public static void main(String[] args) {
        IPhone12 iPhone12 = new IPhone12();
        iPhone12.charge(new Adapter5V(new Power220V()));

        HuaWeiMate30 huaWeiMate30 = new HuaWeiMate30();
        huaWeiMate30.charge(new Adapter10V(new Power220V()));
    }
}
